package com.baizhi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

@Data
public class Guru implements Serializable {
   /* @TableId(value="guru_id",type=IdType.AUTO)*/
    /**
     * 定义属性和Excle中的映射关系
     * name、代表该属性导出之后在表中的列名是什么
     */
    @Excel(name="上师编号")
    private int guruId;
    @Excel(name = "上师名字")
    private String guruName;
    /**
     * type该字段类型为图片
     * imageType=1（默认可以不填），表示从file读取 以文件的形式，数据库保存的是文件路径
     * 可以用相对路径，亦可以用绝对路径，绝对路径优先一次获取
     * imageType=2
     * */
    @Excel(name = "上师头像",type = 2,width = 20,height = 50,imageType = 1)
    private String guruImage;
    @Excel(name = "上师昵称")
    private String guruNickName;
    /**
     *replace 值得替换在导出的时候0为正常，1为不显示
     */
    @Excel(name = "上师状态",replace = {"显示_0","不显示_1"})
    private int guruStatus;

    public Guru() {
    }

    public Guru(int guruId, String guruName, String guruImage, String guruNickName, int guruStatus) {
        this.guruId = guruId;
        this.guruName = guruName;
        this.guruImage = guruImage;
        this.guruNickName = guruNickName;
        this.guruStatus = guruStatus;
    }

    public int getGuruId() {
        return guruId;
    }

    public void setGuruId(int guruId) {
        this.guruId = guruId;
    }

    public String getGuruName() {
        return guruName;
    }

    public void setGuruName(String guruName) {
        this.guruName = guruName;
    }

    public String getGuruImage() {
        return guruImage;
    }

    public void setGuruImage(String guruImage) {
        this.guruImage = guruImage;
    }

    public String getGuruNickName() {
        return guruNickName;
    }

    public void setGuruNickName(String guruNickName) {
        this.guruNickName = guruNickName;
    }

    public int getGuruStatus() {
        return guruStatus;
    }

    public void setGuruStatus(int guruStatus) {
        this.guruStatus = guruStatus;
    }

    @Override
    public String toString() {
        return "Guru{" +
                "guruId=" + guruId +
                ", guruName='" + guruName + '\'' +
                ", guruImage='" + guruImage + '\'' +
                ", guruNickName='" + guruNickName + '\'' +
                ", guruStatus=" + guruStatus +
                '}';
    }
}
